﻿@using QuestionsAnswers.UI.Models
@model CoursePass
@{
    ViewBag.Title = "Index";
    Layout = null;
}
<p>
</p>
<table>
    <tr>
        <th>
            UserName
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model.Users)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.UserName)
            </td>
            @if (@Model.Editable)
            {
                <td>
                    @Html.ConfirmLink("Delete", "Course", "DeleteMember", new { UserId = item.UserId, courseId = @Model.Course.CourseId, MemberType = @Model.MemberType }, "Really Delete?")
                </td>
            }
        </tr>
    }
</table>
